package com.jd.impl;

import java.util.ArrayList;
import java.util.HashMap;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jd.dao.MessageDao;
import com.jd.entity.MessageEntity;
import com.jd.service.MessageService;

@Service
public class MessageImpl implements MessageService {

	@Autowired
	private MessageDao messageDao;
	
	@Override
	public ArrayList<MessageEntity> getMessage(HashMap<String, Object> hashMap) {
		// TODO Auto-generated method stub
		return messageDao.getMessage(hashMap);
	}

	@Override
	public Boolean save(MessageEntity messageEntity) {
		
		// TODO Auto-generated method stub
		return messageDao.save(messageEntity);
	}

}
